﻿using System;
using System.Data;
using System.Data.Common;
using Hxj.Data;
using Hxj.Data.Common;

namespace RecruitStudents.Utility.Model
{

	/// <summary>
	/// 实体类TB_Exam_Examiner 。(属性说明自动提取数据库字段的描述信息)
	/// </summary>
	[Serializable]
	public class TB_Exam_Examiner : Entity 
	{
		public TB_Exam_Examiner():base("TB_Exam_Examiner") {   
            _ExaminerID=Guid.NewGuid().ToString();
            _CreateTime = DateTime.Now;
        }

		#region Model
		private string _ExaminerID;
		private string _ExaminerName;
		private string _LoginName;
		private string _Password;
		private string _SpecialityKinds_DetailNO;
		private string _SpecialityKindsNO;
		private string _IsActive;
		private string _Remark;
		private string _ExamYear;
		private DateTime? _CreateTime;
		/// <summary>
		/// 考官ID
		/// </summary>
		public string ExaminerID
		{
			get{ return _ExaminerID; }
			set
			{
				this.OnPropertyValueChange(_.ExaminerID,_ExaminerID,value);
				this._ExaminerID=value;
			}
		}
		/// <summary>
		/// 考官姓名
		/// </summary>
		public string ExaminerName
		{
			get{ return _ExaminerName; }
			set
			{
				this.OnPropertyValueChange(_.ExaminerName,_ExaminerName,value);
				this._ExaminerName=value;
			}
		}
		/// <summary>
		/// 考官登录名
		/// </summary>
		public string LoginName
		{
			get{ return _LoginName; }
			set
			{
				this.OnPropertyValueChange(_.LoginName,_LoginName,value);
				this._LoginName=value;
			}
		}
		/// <summary>
		/// 登录密码
		/// </summary>
		public string Password
		{
			get{ return _Password; }
			set
			{
				this.OnPropertyValueChange(_.Password,_Password,value);
				this._Password=value;
			}
		}
		/// <summary>
		/// 专业细分编码（考官类型）
		/// </summary>
		public string SpecialityKinds_DetailNO
		{
			get{ return _SpecialityKinds_DetailNO; }
			set
			{
				this.OnPropertyValueChange(_.SpecialityKinds_DetailNO,_SpecialityKinds_DetailNO,value);
				this._SpecialityKinds_DetailNO=value;
			}
		}
		/// <summary>
		/// 所属专业
		/// </summary>
		public string SpecialityKindsNO
		{
			get{ return _SpecialityKindsNO; }
			set
			{
				this.OnPropertyValueChange(_.SpecialityKindsNO,_SpecialityKindsNO,value);
				this._SpecialityKindsNO=value;
			}
		}
		/// <summary>
		/// 是否有效
		/// </summary>
		public string IsActive
		{
			get{ return _IsActive; }
			set
			{
				this.OnPropertyValueChange(_.IsActive,_IsActive,value);
				this._IsActive=value;
			}
		}
		/// <summary>
		/// 备注
		/// </summary>
		public string Remark
		{
			get{ return _Remark; }
			set
			{
				this.OnPropertyValueChange(_.Remark,_Remark,value);
				this._Remark=value;
			}
		}
		/// <summary>
		/// 考试年度
		/// </summary>
		public string ExamYear
		{
			get{ return _ExamYear; }
			set
			{
				this.OnPropertyValueChange(_.ExamYear,_ExamYear,value);
				this._ExamYear=value;
			}
		}
		/// <summary>
		/// 创建时间
		/// </summary>
		public DateTime? CreateTime
		{
			get{ return _CreateTime; }
			set
			{
				this.OnPropertyValueChange(_.CreateTime,_CreateTime,value);
				this._CreateTime=value;
			}
		}
		#endregion

		#region Method
		/// <summary>
		/// 获取实体中的主键列
		/// </summary>
		public override Field[] GetPrimaryKeyFields()
		{
			return new Field[] {
				_.ExaminerID};
		}
		/// <summary>
		/// 获取列信息
		/// </summary>
		public override Field[] GetFields()
		{
			return new Field[] {
				_.ExaminerID,
				_.ExaminerName,
				_.LoginName,
				_.Password,
				_.SpecialityKinds_DetailNO,
				_.SpecialityKindsNO,
				_.IsActive,
				_.Remark,
				_.ExamYear,
				_.CreateTime};
		}
		/// <summary>
		/// 获取值信息
		/// </summary>
		public override object[] GetValues()
		{
			return new object[] {
				this._ExaminerID,
				this._ExaminerName,
				this._LoginName,
				this._Password,
				this._SpecialityKinds_DetailNO,
				this._SpecialityKindsNO,
				this._IsActive,
				this._Remark,
				this._ExamYear,
				this._CreateTime};
		}
		/// <summary>
		/// 给当前实体赋值
		/// </summary>
		public override void SetPropertyValues(IDataReader reader)
		{
			this._ExaminerID = DataUtils.ConvertValue<string>(reader["ExaminerID"]);
			this._ExaminerName = DataUtils.ConvertValue<string>(reader["ExaminerName"]);
			this._LoginName = DataUtils.ConvertValue<string>(reader["LoginName"]);
			this._Password = DataUtils.ConvertValue<string>(reader["Password"]);
			this._SpecialityKinds_DetailNO = DataUtils.ConvertValue<string>(reader["SpecialityKinds_DetailNO"]);
			this._SpecialityKindsNO = DataUtils.ConvertValue<string>(reader["SpecialityKindsNO"]);
			this._IsActive = DataUtils.ConvertValue<string>(reader["IsActive"]);
			this._Remark = DataUtils.ConvertValue<string>(reader["Remark"]);
			this._ExamYear = DataUtils.ConvertValue<string>(reader["ExamYear"]);
			this._CreateTime = DataUtils.ConvertValue<DateTime?>(reader["CreateTime"]);
		}
		/// <summary>
		/// 给当前实体赋值
		/// </summary>
		public override void SetPropertyValues(DataRow row)
		{
			this._ExaminerID = DataUtils.ConvertValue<string>(row["ExaminerID"]);
			this._ExaminerName = DataUtils.ConvertValue<string>(row["ExaminerName"]);
			this._LoginName = DataUtils.ConvertValue<string>(row["LoginName"]);
			this._Password = DataUtils.ConvertValue<string>(row["Password"]);
			this._SpecialityKinds_DetailNO = DataUtils.ConvertValue<string>(row["SpecialityKinds_DetailNO"]);
			this._SpecialityKindsNO = DataUtils.ConvertValue<string>(row["SpecialityKindsNO"]);
			this._IsActive = DataUtils.ConvertValue<string>(row["IsActive"]);
			this._Remark = DataUtils.ConvertValue<string>(row["Remark"]);
			this._ExamYear = DataUtils.ConvertValue<string>(row["ExamYear"]);
			this._CreateTime = DataUtils.ConvertValue<DateTime?>(row["CreateTime"]);
		}
		#endregion

		#region _Field
		/// <summary>
		/// 字段信息
		/// </summary>
		public class _
		{
			/// <summary>
			/// * 
			/// </summary>
			public readonly static Field All = new Field("*","TB_Exam_Examiner");
			/// <summary>
			/// 考官ID
			/// </summary>
			public readonly static Field ExaminerID = new Field("ExaminerID","TB_Exam_Examiner","考官ID");
			/// <summary>
			/// 考官姓名
			/// </summary>
			public readonly static Field ExaminerName = new Field("ExaminerName","TB_Exam_Examiner","考官姓名");
			/// <summary>
			/// 考官登录名
			/// </summary>
			public readonly static Field LoginName = new Field("LoginName","TB_Exam_Examiner","考官登录名");
			/// <summary>
			/// 登录密码
			/// </summary>
			public readonly static Field Password = new Field("Password","TB_Exam_Examiner","登录密码");
			/// <summary>
			/// 专业细分编码（考官类型）
			/// </summary>
			public readonly static Field SpecialityKinds_DetailNO = new Field("SpecialityKinds_DetailNO","TB_Exam_Examiner","专业细分编码（考官类型）");
			/// <summary>
			/// 所属专业
			/// </summary>
			public readonly static Field SpecialityKindsNO = new Field("SpecialityKindsNO","TB_Exam_Examiner","所属专业");
			/// <summary>
			/// 是否有效
			/// </summary>
			public readonly static Field IsActive = new Field("IsActive","TB_Exam_Examiner","是否有效");
			/// <summary>
			/// 备注
			/// </summary>
			public readonly static Field Remark = new Field("Remark","TB_Exam_Examiner","备注");
			/// <summary>
			/// 考试年度
			/// </summary>
			public readonly static Field ExamYear = new Field("ExamYear","TB_Exam_Examiner","考试年度");
			/// <summary>
			/// 创建时间
			/// </summary>
			public readonly static Field CreateTime = new Field("CreateTime","TB_Exam_Examiner","创建时间");
		}
		#endregion


	}
}

